package com.study.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.model.dto.task.TaskAddRequest;
import com.study.model.dto.task.TaskQueryRequest;
import com.study.model.dto.task.TaskUpdateRequest;
import com.study.model.entity.Task;
import com.study.model.vo.PostVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @description 针对表【task(计划表)】的数据库操作Service
*/
public interface TaskService extends IService<Task> {

    /***
     * 创建计划
     * @param taskAddRequest
     * @param request
     * @return
     */
    Long createTask(TaskAddRequest taskAddRequest, HttpServletRequest request);

    /**
     * 更新计划
     * @param taskUpdateRequest
     * @return
     */
    Boolean updateTask(TaskUpdateRequest taskUpdateRequest);

    /**
     * 查询用户计划
     * @param request
     * @return
     */

    List<Task> listTaskByUserId(HttpServletRequest request);
}
